﻿@{
    ViewBag.Title = "通知信息";
}

@section Header {
    <a href="#" data-rel="back" data-role="button">返回</a>
    <h1>@ViewBag.Title</h1>
}

@using LandPortMoblieWeb.Models;


<style type="text/css">
    .custom-corners .ui-bar {
        -webkit-border-top-left-radius: inherit;
        border-top-left-radius: inherit;
        -webkit-border-top-right-radius: inherit;
        border-top-right-radius: inherit;
    }

    .custom-corners .ui-body {
        border-top-width: 0;
        -webkit-border-bottom-left-radius: inherit;
        border-bottom-left-radius: inherit;
        -webkit-border-bottom-right-radius: inherit;
        border-bottom-right-radius: inherit;
    }
</style>


<div class="ui-corner-all custom-corners">
    @{
        var cc = (LandPortMoblieWeb.Models.Massage)ViewBag.data;
        <div class="ui-bar ui-bar-a">
            <h3>@cc.Title</h3>
        </div>
        <div class="ui-body ui-body-a">
            <p>@Html.Raw(cc.Contents)</p>
        </div>
    }
</div>

<ul data-role="listview" data-inset="true">
    <li data-role="list-divider" data-theme="b">下载附件</li>
    @{
        if (!string.IsNullOrEmpty(cc.File1))
        {
            var nameArry1 = cc.File1.Split('_');
            <li data-icon="arrow-d">@Html.ActionLink(nameArry1[1], "MassageDownLoad", "Home", new { num = "1", id = cc.Id }, new { data_ajax = "false" })</li>
        }

        if (!string.IsNullOrEmpty(cc.File2))
        {
            var nameArry2 = cc.File2.Split('_');
            <li data-icon="arrow-d">
                <a href="/Home/MassageDownLoad?num=1&id=@cc.Id" data-ajax="false">@nameArry2[1]</a>
            </li>
        }

    }
</ul>
